package org.example.petsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("post")
public class Post {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;
    private String cover;
    private String author;
    private String authorAvatar;
    private LocalDateTime createTime;
    private String status;  // pending/approved/rejected
    private String content;
    private String rejectReason;  // 拒绝原因
} 